﻿using System.Collections.Generic;
using System.Linq;

namespace Pap.Data
{
    /// <summary>
    /// 
    /// </summary>
    public partial class CommitteeBankAccount : ICommitteeBankAccount
    {
        #region ICommitteeBankAccount Members


        /// <summary>
        /// Gets the committee bank account deposites.
        /// </summary>
        IEnumerable<ICommitteeBankAccountDeposite> ICommitteeBankAccount.CommitteeBankAccountDeposites
        {
            get { return this.CommitteeBankAccountDeposites.OfType<ICommitteeBankAccountDeposite>(); }
        }

        /// <summary>
        /// Gets the committee bank account expenses.
        /// </summary>
        IEnumerable<ICommitteeBankAccountExpense> ICommitteeBankAccount.CommitteeBankAccountExpenses
        {
            get { return this.CommitteeBankAccountExpenses.OfType<ICommitteeBankAccountExpense>(); }
        }

        /// <summary>
        /// Gets the committee bank account main branch deposites.
        /// </summary>
        IEnumerable<ICommitteeBankAccountMainBranchDeposite> ICommitteeBankAccount.CommitteeBankAccountMainBranchDeposites
        {
            get { return this.CommitteeBankAccountMainBranchDeposites.OfType<ICommitteeBankAccountMainBranchDeposite>(); }
        }

        /// <summary>
        /// Gets the project.
        /// </summary>
        IProject ICommitteeBankAccount.Project
        {
            get { return this.Project; }
        }

        /// <summary>
        /// Gets the committee.
        /// </summary>
        ICommittee ICommitteeBankAccount.Committee
        {
            get { return this.Committee; }
        }

        #endregion
    }
}
